package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description NursingPlanMapper
 * @Author LiShunSen
 * @Date 2024-08-27
 */
@Mapper
public interface NursingPlanMapper {
    //查询护理计划
    NursingPlanVo getPlanById(@Param("id") Long id);


    void updatePlan(NursingPlan nursingPlan);

    List<NursingPlanVo> getPlan();

    void addPlan(NursingPlan nursingPlan);

    //分页查询
    Page<NursingPlanVo> getByPage(@Param("name") String name, @Param("status") Integer status);


    void deletePlan(Long id);

    //禁用/启用计划
    void statusPlan(@Param("id") Long id, @Param("status") Integer status);


}
